import request from '@/utils/request'

const api_name = `/api/hosp`

export default {
    getPageList(pageNum, pageSize, searchObj) {
        return request({
            url: `${api_name}/getPageList/${pageNum}/${pageSize}`,
            method: 'get',
            params: searchObj
        })
    },
    getByHosname(hosname) {
        return request({
            url: `${api_name}/getByHosname/${hosname}`,
            method: 'get'
        })
    },
    show(hoscode) {
        return request({
            url: `${api_name}/show/${hoscode}`,
            method: 'get'
        })
    },
    findDepartment(hoscode) {
        return request({
            url: `${api_name}/findDepartment/${hoscode}`,
            method: 'get'
        })
    }
}